public class Edge implements Comparable<Edge>{
	private Pixel a;
	private Pixel b;
	private int edgeWeight;
	public Edge (Pixel a, Pixel b, int weight) {
		this.a = a;
		this.b = b;
		this.edgeWeight = weight;
	}
	public Pixel getA() {
		return this.a;
	}
	public Pixel getB() {
		return this.b;
	}
	public int getEdgeWeight() {
		return this.edgeWeight;
	}
	
	@Override
	public int compareTo(Edge compareEdge) {
		double compareEdgeWeight = ((Edge) compareEdge).edgeWeight;
		
		if ((compareEdgeWeight - this.edgeWeight) > 0) {
			return -1;
		}
		else if ((compareEdgeWeight - this.edgeWeight) < 0) {
			return 1;
		}
		else {
			return 0;
		}
	}
}